#include "linkfactory.h"

LinkFactory::LinkFactory(QObject *parent) :
    QObject(parent)
{
}

LinkDescription* LinkFactory::getLD(int key){
    LinkDescription* desc=linkMap.value(key);
    if(desc!=NULL){
        return desc;
    }
    desc=new LinkDescription(key);
    linkMap.insert(key, desc);
    emit newLD(key);
    return desc;
};
